"""
@作者 = "陈诗"
@email = 3168157154@qq.com
@creative_time = 2025/10/31 18:08
"""


class Pet:
    def __init__(self, name, hp, attack, speed):
        self.name = name
        self.hp = hp
        self.attack = attack
        self.speed = speed

    def is_alive(self, hp):
        if self.hp > 0:
            return

    def take_damage(self, damage):
        if self.hp > damage:
            self.hp -= damage
            return
        else:
            return f"{self.name}被打死了"

    def attack_enemy(self,enemy):
        